package org.xhnews.to;




public class NewsItem {
	private String ID;
	private String title;
	private String fileName;
	//private String link;
	private String attach;
	private String pubDate;
	private String channelFileName;
	private String channelTitle;
	private boolean isRead;
	private boolean isFavorite;
	public void setID(String id) {
		ID = id;
	}
	public String getID() {
		return ID;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getTitle() {
		return title;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getFileName() {
		return fileName;
	}
	public void setAttach(String attach) {
		this.attach = attach;
	}
	public String getAttach() {
		return attach;
	}
	public void setPubDate(String pubDate) {
		this.pubDate = pubDate;
	}
	public String getPubDate() {
		return pubDate;
	}
	
	public void setRead(boolean isRead) {
		this.isRead = isRead;
	}
	public boolean isRead() {
		return isRead;
	}
	public void setFavorite(boolean isFavorite) {
		this.isFavorite = isFavorite;
	}
	public boolean isFavorite() {
		return isFavorite;
	}
	public void setChannelFileName(String channelFileName) {
		this.channelFileName = channelFileName;
	}
	public String getChannelFileName() {
		return channelFileName;
	}
	public void setChannelTitle(String channelTitle) {
		this.channelTitle = channelTitle;
	}
	public String getChannelTitle() {
		return channelTitle;
	}
	public int compareTo(NewsItem another) {			
		return this.ID.compareTo(another.ID);
	}
	public boolean equals(NewsItem another){
		if(this.ID.compareTo(another.ID)==0){
			return true;
		}else{
			return false;
		}
	}
	public String toString(){
		return ID+" "+title+" "+pubDate+" "+attach;
	}
}
